package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.LineinfoDao;
import com.dstz.demo.core.manager.LineinfoManager;
import com.dstz.demo.core.model.Lineinfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 所有路线信息 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2020-02-16 16:38:11
 */
@Service("lineinfoManager")
public class LineinfoManagerImpl extends BaseManager<String, Lineinfo> implements LineinfoManager{
	@Resource
	LineinfoDao lineinfoDao;

	@Override
	public List<String> findAllLines() {

		List<String> lines = lineinfoDao.findAllLines();
		return lines;
	}

	@Override
	public List<Lineinfo> findLineName(String lineName) {
		return lineinfoDao.getLineName(lineName);
	}
}
